package cn.kgc.springcloudalibaba.controller;

import cn.kgc.springcloudalibaba.client.OrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: mosin
 * @version: v1.0  2023/1/9
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private OrderClient orderClient;

    @RequestMapping("m1")
    public String method1(){
        return "UserController ok";
    }

    @RequestMapping("m2")
    public String method2(Integer id){
        String s = orderClient.method2(id);
        return "UserController ok : "+s;
    }


}
